package com.example.myapplication4;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class SuccessActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_success);
        Intent intent=getIntent();
        TextView textView1=(TextView) findViewById(R.id.textView3);
        textView1.setText(intent.getStringExtra("name")+"\n"
        +intent.getStringExtra("code"));
    }
}